package org.dao.imp;

import org.dao.Dldao;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.model.Dlb;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class DldaoImp extends HibernateDaoSupport implements Dldao {

	/*private SessionFactory sessionFactory;
	public void setSessionFactory(SessionFactory sessionFactory){
		this.sessionFactory=sessionFactory;
	}
	public void save(Dlb dl) {
		try{
			Session session=sessionFactory.openSession();
			Transaction ts=session.beginTransaction();
			session.save(dl);
			ts.commit();
		}catch(Exception e){
			e.printStackTrace();
		}

	}*/
	public void save(Dlb dl){
		getHibernateTemplate().save(dl);
	}

}
